package com.jhc.soft.mapper;

import com.jhc.soft.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: zfm
 * @Date: 2021/11/11 09:11
 */
public interface UserMapper {
    /**
     * @param id
     * @return
     */
    User getById(Integer id);

    /**
     * login
     *
     * @param username
     * @param password
     * @return
     */
    User login(@Param("username") String username, @Param("password") String password);


    User getByOpenId(@Param("openId") String openId);

    void updateById(@Param("user") User user);

    User panduan(String username);

    User zhuce(int id, String username, String password, String name);

}
